24460640b0f06d56e021af13e8597f44c1c5c12f,Java_CCN/com/parc/ccn/library/io/CCNBlockInputStream.java,CCNBlockInputStream,readInternal,#number[]#number#number#,58
Before Change
((null != buf) ? buf.length : "null") + " at offset " + offset);
// is this the first block?
if (null == _currentBlock) {
setCurrentBlock(getFirstBlock());
if (null == _currentBlock)
return 0; // nothing to read
}
After Change
((null != buf) ? buf.length : "null") + " at offset " + offset);
// is this the first block?
if (null == _currentBlock) {
ContentObject firstBlock = getFirstBlock();
if (null == firstBlock) {
return -1; // nothing to read
}
setCurrentBlock(firstBlock);
}
// Now we have a block in place. Read from it. If we run out of block before